from flask import Flask
app=Flask(__name__)
@app.route("/")
def index():
    return "这是首页！"
@app.route("/about")
def about():
    return "这是关于页面！"
#打印输出所有的规则
print(app.url_map)
if __name__ == '__main__':
    app.run()

